package com.zyb.basic.service;

import com.zyb.basic.query.BaseQuery;
import com.zyb.basic.util.QueryResult;
import java.util.List;

public interface IBaseService<T> {
    List<T> loadAll();

    T loadOne(Long id);

    void add (T t);

    void delete (Long id);

    void update (T t);
    //查询当前的页数
    QueryResult<T> queryPage(BaseQuery query);

    void batchDelete(List<Long> ids);
}
